package com.yx.modules.api.service.impl;

import com.yx.modules.api.dao.TbBookRecommendRecordDao;
import com.yx.modules.api.entity.TbBookRecommendRecord;
import com.yx.modules.api.service.TbBookRecommendRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;




@Service
public class TbBookRecommendRecordServiceImpl implements TbBookRecommendRecordService {
	@Autowired
	private TbBookRecommendRecordDao bookRecommendRecordDao;
	
	@Override
	public TbBookRecommendRecord queryObject(Integer id){
		return bookRecommendRecordDao.queryObject(id);
	}
	
	@Override
	public List<TbBookRecommendRecord> queryList(Map<String, Object> map){
		return bookRecommendRecordDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return bookRecommendRecordDao.queryTotal(map);
	}
	
	@Override
	public void save(TbBookRecommendRecord bookRecommendRecord){
		bookRecommendRecordDao.save(bookRecommendRecord);
	}
	
	@Override
	public void update(TbBookRecommendRecord bookRecommendRecord){
		bookRecommendRecordDao.update(bookRecommendRecord);
	}
	
	@Override
	public void delete(Integer id){
		bookRecommendRecordDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		bookRecommendRecordDao.deleteBatch(ids);
	}

	@Override
	public TbBookRecommendRecord findByBookidAndUserid(Integer userId, Integer id) {
		return bookRecommendRecordDao.findByBookidAndUserid(userId,id);
	}

}
